package com.gopay.common.portal.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.domain.cps.CpsAcctBankBundleRel;
import com.gopay.common.portal.dao.AcctBankBundleRelQueryDAO;

/**
 * 国付宝账户同提现银行卡绑定关系查询DAO 实现类
 * 
 * @AcctBankBundleRelQueryDAOImpl.java
 * @author MA HUAN
 * @2013-8-9 下午4:05:51  www.gopay.com.cn Inc.All rights reserved.
 */

@Repository(value="acctBankBundleRelQueryDAO")
public class AcctBankBundleRelQueryDAOImpl extends BaseDAOImpl<CpsAcctBankBundleRel, Long> implements AcctBankBundleRelQueryDAO{

    @Override
    public List<CpsAcctBankBundleRel> listBundleRelByAcctId(String acctId) {
        
        String hql = " from CpsAcctBankBundleRel rel where rel.acctId = :AcctId";
        
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("AcctId", acctId);
        
        return super.findByHql(hql, params);
    }

}
